<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html>
<!-- saved from url=(0038)http://192.168.0.77/pms/idea_show.html -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.js"></script>
</head>
<body class="body">
	<jsp:include page="include/head.jsp">
		<jsp:param value="${ep}" name="ep"/>
	</jsp:include>
	
	
	<div class="container">
	  <div class="row">
		<div class="span3">
			<div style="padding: 8px 0;" class="well">
				<jsp:include page="include/nav.jsp">
					<jsp:param value="${ep}" name="ep"/>
				</jsp:include>
			</div>
		</div>
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="idea.jspx?p=${p}"><i class="icon-fire"></i>想法</a>&gt;${ideaHelp.idea.title}
				</li>
				
			</ul>
			<div class="wall">
				  <div class="page-header">
					<h3>${ideaHelp.idea.title}&nbsp;&nbsp;<small>${ideaHelp.employeeName}发布于 ${ideaHelp.idea.createtime}</small></h3>
				  </div>
				  <p>${ideaHelp.idea.content}</p>
				  
				  <div class="line">
					评论
				  </div>
				  <form action="idea.jspx" method="post">
				  	<input type="hidden" name="ideaId" value="${ideaHelp.ideaId}">
				  	<input type="hidden" name="_m" value="saveIdeaComment">
					<textarea name="content" id="" class="span8" rows="5"></textarea>
					<br>
					<button class="btn">发布</button>
				  </form>
				 <c:if test="${fn:length(ideaHelp.ideaCommentHelpList) == 0 }">
					<blockquote>
					  	没有评论！
					</blockquote>
				 </c:if>
				 <c:forEach items="${ideaHelp.ideaCommentHelpList}" var="ideaCommentHelp">
					 <blockquote>
					  		${ideaCommentHelp.ideaComment.content};
					  <small>
						${ideaCommentHelp.employeeName}发布于 ${ideaCommentHelp.ideaComment.createtime}
						<c:if test="${ideaHelp.employeeName == ep.employee.username}">
						    <a href="idea.jspx?_m=delIdeaComment&ideaCommentId=${ideaCommentHelp.ideaComment.id}&ideaId=${ideaHelp.ideaId}" title="删除"><i class="icon-trash"></i></a>
						</c:if>
					  </small>
					</blockquote>
				</c:forEach>
				<a href="idea.jspx?p=${p}">←返回想法列表</a>
			</div>
		</div>
	  </div>
	</div>

</body></html>